Automattic\WooCommerce\Blocks\BlockTypes\ProductCollection D

Total Complexity 134
Dependencies 7
Dependents 0
Total lines 1,380
Lines of code 733
Logical lines of code 315
Comment lines 485
Methods 39
Properties 5

Methods 39

Method Rating Maintainability Complexity Lines of code
disable_enhanced_pagination()
A
43 14 49
add_price_range_filter_posts_clauses()
A
49 7 31
merge_queries()
S
52 6 28
get_stock_status_query()
S
53 6 25
enhance_product_collection_with_interactivity()
S
44 4 49
is_block_compatible()
S
60 6 14
get_filter_by_price_query()
S
52 5 28
get_filter_by_attributes_query()
S
49 4 35
array_merge_recursive_replace_non_array_properties()
S
59 5 15
get_filter_by_rating_query()
S
51 4 28
get_product_visibility_query()
S
57 4 17
get_final_query_args()
S
55 4 17
get_date_query()
S
59 4 15
get_filter_by_taxonomies_query()
S
59 4 13
add_navigation_link_directives()
S
61 4 11
get_product_attributes_query()
S
53 3 26
get_filter_by_stock_status_query()
S
54 3 24
get_price_filter_query_for_displayed_taxes()
S
53 3 23
get_valid_query_vars()
S
51 2 32
update_pagination_anchors()
S
56 3 17
get_featured_query()
S
59 3 15
update_rest_query_in_editor()
S
51 2 28
adjust_price_filter_for_tax_class()
S
61 3 11
get_final_frontend_query()
S
47 1 38
get_filter_by_attributes_query_vars()
S
58 2 17
merge_tax_queries()
S
65 3 9
filter_query_to_only_include_ids()
S
68 3 7
build_frontend_query()
S
64 3 9
get_custom_orderby_query()
S
61 2 13
process_pagination_links()
S
61 2 12
initialize()
S
55 1 21
get_on_sale_products_query()
S
68 2 8
extend_rest_query_allowed_params()
S
71 2 5
add_support_for_filter_blocks()
S
63 2 10
get_price_range_query_args()
S
67 2 9
should_adjust_price_range_for_taxes()
S
72 2 5
append_product_sorting_table_join()
S
67 2 7
get_queries_by_applied_filters()
S
67 1 8
enqueue_data()
S
74 1 4